<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Privilege assignment</title>
</head>
<body>
<form action="systemPrivs" method="post">
<table style="border: solid">
<CAPTION>System Privilege</CAPTION>
<tr>
<%
	String[] privs = (String[])request.getAttribute("privs");
	for(int i = 0; i < 18; i++){
		if(privs[i]== null)
			break;
%>
<td><input type="radio" name="system_privs" value="<%= privs[i] %>"><%= privs[i] %></td>
<%
	}
%>
</tr>
</table>
<table>
	<tr>
		<td><input type="radio" name="gr_rv" value="grant" checked>Grant</td>
		<td><input type="radio" name="gr_rv" value="revoke">Revoke</td>
	</tr>
	<tr>
		<td><input type="radio" name="adminopt" value="no" checked>Without Admin Option</td>
		<td><input type="radio" name="adminopt" value="yes">With admin option</td>
	</tr>
	<tr>
		<td>Username/Role</td>
		<td><input type="text" name="name" value=""></td>
		<td><input type="submit" value="Submit"></td>
	</tr>
</table>
</form>
</body>
</html>